package com.p2p.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("新闻实体")
public class Article {

  @ApiModelProperty(name = "id",notes = "id",dataType = "Integer",required = true)
  private Integer id;
  @ApiModelProperty(name = "articleTitle",notes = "新闻标题",dataType = "String",required = false)
  private String articleTitle;
  @ApiModelProperty(name = "source",notes = "来源",dataType = "String",required = false)
  private String source;
  @ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "Timestamp",required = false)
  private Timestamp updateTime;
  @ApiModelProperty(name = "author",notes = "作者",dataType = "String",required = false)
  private String author;
  @ApiModelProperty(name = "articleType",notes = "文章类型",dataType = "String",required = false)
  private String articleType;
  @ApiModelProperty(name = "imgUrl",notes = "图片路径",dataType = "String",required = false)
  private String imgUrl;
  @ApiModelProperty(name = "articleUrl",notes = "文章跳转路径",dataType = "String",required = false)
  private String articleUrl;
  @ApiModelProperty(name = "description",notes = "描述",dataType = "String",required = false)
  private String description;
  @ApiModelProperty(name = "articleFileUrl",notes = "文章文件上传路径",dataType = "String",required = false)
  private String articleFileUrl;
  @ApiModelProperty(name = "sort",notes = "排序",dataType = "Integer",required = false)
  private Integer sort;
  @ApiModelProperty(name = "status",notes = "状态",dataType = "Byte",required = false)
  private Byte status;
  @ApiModelProperty(name = "isDeleted",notes = "是否删除",dataType = "Byte",required = false)
  private Byte isDeleted;

  private Timestamp createTime;


}
